﻿@model Product
@{
    ViewBag.Title = "Detail";
}

<h2>THÔNG TIN CHI TIẾT</h2>

<img src="/images/products/@Model.Image" />
<ul>
    <li>@Model.Id</li>
    <li>@Model.Name</li>
    <li>@Model.UnitPrice</li>
    <li>@Model.Category.NameVN</li>
</ul>

<h3>HÀNG CÙNG LOẠI</h3>
<ul>
    @foreach (var p in Model.Category.Products)
    {
        <li>
            <a href="/Product/Detail/@p.Id">@p.Name</a>
        </li>
    }
</ul>

<h3>HÀNG CÙNG HÃNG</h3>
<ul>
    @foreach (var p in Model.Supplier.Products)
    {
        <li>
            <a href="/Product/Detail/@p.Id">@p.Name</a>
        </li>
    }
</ul>

<h3>HÀNG ĐÃ XEM</h3>
<ul>
    @foreach (var p in ViewBag.Views)
    {
        <li>
            <a href="/Product/Detail/@p.Id">@p.Name</a>
        </li>
    }
</ul>